package com.ljy.controller.phone;


import com.ljy.pojo.phone.Phone_state;
import com.ljy.service.Phone_state_service;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/phone")
public class Phone {


    @Resource
    Phone_state_service phone_state_service;

    @RequestMapping(value = "/state")//状态
    public String phone_state(String role,String state,String remarks){

        int i = 0;
        try {

                i = phone_state_service.addPhone_state(role,state,remarks);
                System.out.println("/phone/state"+role+state+remarks+"..");

            if (i > 0) {
                return "ok";
            }else {
                return "==null";
            }
        }catch (Exception e){
            e.printStackTrace();
        }
        return "err";
    }


}
